﻿using System;
using OpenTK.Graphics.OpenGL;

namespace Mono.Rift.Core.Graphics
{
	public class Buffer : RenderBuffer
	{
		const uint GL_WRITE_ONLY = 0x88B9;

		public RenderDevice RenderDevice { get; set; }
		public object Data { get; set; }

		//public int Size { get; set; }
		//public int Use { get; set; }
		//public uint GLBuffer { get; set; }

		public Buffer (RenderDevice renderDevice)
		{
			RenderDevice = renderDevice;
		}

		#region implemented abstract members of RenderBuffer

		/*
		public override int getSize ()
		{
			return Size;
		}
*/
		public override object map (int start, int size, int flags = 0)
		{
			//gl.BindBuffer ();

			throw new NotImplementedException ();
		}

		public override bool unmap (object o)
		{
			throw new NotImplementedException ();
		}
		/*
		public override bool data (int use, byte[] buffer, int size)
		{
			throw new NotImplementedException ();
		}
*/

		public override void clear ()
		{
			throw new NotImplementedException ();
		}

		#endregion
	}
}

